﻿using AutoMapper;
using SXFramWork.Model;
using System;
using System.Collections.Generic;
using System.Text;

namespace SXFramWork.Service.SysUser
{
    public class MapConfig: Profile
    {
        public MapConfig()
        {
            CreateMap<UserAddModel, SysUserEntity>().ForMember(m => m.Roles, opt => opt.Ignore());
            CreateMap<UserUpdateModel, SysUserEntity>().ForMember(m => m.Roles, opt => opt.Ignore());
            CreateMap<SysUserEntity, UserUpdateModel>().ForMember(m => m.Roles, opt => opt.Ignore());
        }
    }
}
